# 0
# //不能打开文件，并不是转义字符

# 1
# 默认只读打开
# help()

# 2
# x创建文件并打开，b二进制

# 3


# 4
# f = open('test1.txt','r')
# for each in f:
#     print(each)

# 5
# 如上打印文件对象

# 6
# f.read(10)
# 返回前10个字符

# 7
# f.tell()获取文件指针位置


# f = open('test1.txt')
# print(f.read(5))
# print(f.tell())

# 动手吧
# 1
mp = open('OpenMe.mp3',encoding='gbk')

for each_line in mp:
    print(each_line, end=' ')

mp.seek(0,0)
mp2 = open('openMe.txt','x')
mp2.write(mp.read())



mp.close()
mp2.close()